local wezterm = require("wezterm")
local colors = require("colors.custom")
local platform = require("utils.platform")()
-- local fonts = require('config.fonts')

local custom_theme = "Github Dark (Gogh)"
local opacity = 1

-- opacity depend on system
if platform.is_win then
	opacity = 0.92
elseif platform.is_mac then
	opacity = 0.8
end


return {
	term = "xterm-256color",
	animation_fps = 60,
	max_fps = 60,
	-- front_end = "WebGpu",
	-- webgpu_power_preference = "HighPerformance",

	-- color scheme
	colors = colors,
	color_scheme = custom_theme,

	-- WINDOW
	-- initial_cols = 120,
	-- initial_rows = 30,
	window_padding = {
		left = 0,
		right = 0,
		top = 0,
		bottom = 0,
	},
	adjust_window_size_when_changing_font_size = false,
	window_close_confirmation = "AlwaysPrompt",
	-- window_decorations = "RESIZE | MACOS_FORCE_ENABLE_SHADOW",
	window_background_opacity = opacity,
	text_background_opacity = opacity,
	macos_window_background_blur = 10,
	native_macos_fullscreen_mode = false,
	-- nightly wezterm
	-- window_content_alignment = {
	-- 	horizontal = 'Center',
	-- 	vertical = 'Center',
	-- },

	-- TABS
	enable_tab_bar = true,
	use_fancy_tab_bar = false,
	hide_tab_bar_if_only_one_tab = true,
	show_new_tab_button_in_tab_bar = false,
	tab_max_width = 40,
}
